package com.UnionPayCenter.mapper;

import com.UnionPayCenter.distribution.entity.DistributionTemplateCardDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DistributionTemplateCardDOMapper {
    int deleteByPrimaryKey(Long id);

    int insert(DistributionTemplateCardDO record);

    int insertSelective(DistributionTemplateCardDO record);

    DistributionTemplateCardDO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(DistributionTemplateCardDO record);

    int updateByPrimaryKey(DistributionTemplateCardDO record);

    void deleteByShopId(@Param("shopId") Long shopId, @Param("idgen") Integer idgen,
                        @Param("cardOwner") String cardOwner, @Param("cardType") Long cardType);

    void insertBatch(@Param("list") List<DistributionTemplateCardDO> cardDOList);

    List<DistributionTemplateCardDO> listDistributionTemplateCardDO(@Param("shopId") Long shopId, @Param("idgen") Integer idgen,
                                                                    @Param("cardOwner") String cardOwner, @Param("cardType") Long cardType);
}